package com.hzdp.web.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.hzdp.entity.Brand;
import com.hzdp.service.BrandService;

public class BrandListAction {

	@Autowired
	private BrandService brandService;

	private List<Brand> brands;

	public String execute() {
		brands = brandService.findAll();
		return "success";
	}

	public List<Brand> getBrands() {
		return brands;
	}

}
